{extend name="common/base" /}
{block name="title"}商品分类列表{/block}
{block name="main"}
<script src="/ad/js/g_add/g_type_list.js"></script>
     <!-- Navigation -->
		<div id="page-wrapper">
        <div class="col-md-12 graphs">
	   <div class="xs">
  	 <h3>商品分类列表</h3>
  	<div class="bs-example4" data-example-id="contextual-table">
	<h5 ><a href="{:url('Goods/g_type')}"><span class="label label-success">添加商品分类</span></a></h5>
    <div class="table-responsive">
    <table class="table">
      <thead>
        <tr>
          <th>#</th>
		  <th>分类图片</th>
          <th>分类名称</th>
          <th>分类分组</th>
		  <th>添加时间</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
		{volist name="data" id="m" key="k"}
        <tr>
          <th scope="row">{$k}</th>
		      <td><img src="{$m['goods_type_icon']}" style="width:40px;"/></td>
          <td>{$m.goods_type_name}</td>
          <td>{$m.goods_group}</td>
          <td>{$m.goods_type_time|date='Y-m-d',###}</td>
		  <td>
        <h5><a href="{:url('Goods/g_type',array('goods_type_id'=>$m['goods_type_id']))}"><span class="label label-primary">编辑</span></a>&nbsp;
        <a href="javascript:void(0)" data-url="{:url('Goods/gt_delete')}" data-id="{$m['goods_type_id']}" class="del_goods"><span class="label label-danger">删除</span></a></h5>
      </td>
        </tr>
		{/volist}

      </tbody>
    </table>
    </div>
	  <div style="text-align:center;">{$data -> render()}</div>
   </div>
  </div>
  </div>
  {/block}


